// const {defineConfig} = require('@vue/cli-service')
// module.exports = defineConfig({
//   transpileDependencies: true,
// })

//关闭语法检查和代理跨域
module.exports = {
  lintOnSave: false,
  devServer: {
    proxy: {
      '/api': {
        target: 'http://gmall-h5-api.atguigu.cn',
        pathRewrite: {
          '^/api': ''
        },
        secure: false,
        changOrigin: true
      }
    }
  }
}